﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="Recommend_Add.aspx.cs" Inherits="TimKen.Web.Admin.Recommend.Recommend_Add" %>
<%@ Register TagPrefix="FCKeditorV2" Namespace="FredCK.FCKeditorV2" Assembly="FredCK.FCKeditorV2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentLinkAction" runat="server">

 <span class="action-span"><a href="Recommend_Manage.aspx">
        产品推荐列表</span> 
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentTitle" runat="server">
新增推荐分类
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentMain" runat="server">

    <script type="text/javascript">
    function Upload() {
        var sk, sf, sp, ss;
        sk = "/FileUploadMain.aspx?syn=DSC";
        sf = "dialogWidth=420px;dialogHeight=200px;center=yes;help=no;resizable:no;status:no";
        sp = ""; ss = "";
        ss = showModalDialog(sk, sp, sf);
        if (ss != null && ss != "") {
            document.getElementById("<%=this.txtLogo.ClientID%>").value = ss;
            document.getElementById("<%=this.btnRefresh.ClientID%>").click();
        }
    }
    </script>

    <div class="main-div">
        <table width="100%" id="general-table">
            <tr>
                <th class="label">
                    推荐分类：
                </th>
                <td>
                     <asp:DropDownList ID="ddlCategory" runat="server">
        </asp:DropDownList>
                </td>
            </tr>
            
            
            
             <tr>
                <th class="label">
                    介绍图片：
                </th>
                <td>
       <asp:TextBox  ID="txtLogo" runat="server" Width="150px" style="display:none" ></asp:TextBox>
            <input type="button"  onclick="Upload()" value="上传"   id="btnUpload" runat="server"/>
        <asp:Button ID="btnDelete" Text="删除" runat="server"  CausesValidation="false" OnClick="btnDelete_Click"/><br />
  <asp:Image Width="200" Height="200" ID="imgLogoImage" runat="server" />
        <asp:Button ID="btnRefresh" Text="" runat="server"  CausesValidation="false" style="display:none"  OnClick="btnRefresh_Click"/>              
                </td>
            </tr>
            
            
                  <tr>
                <th class="label">
                   <%=GetLangString("DescriptionEN")%>：
                </th>
                <td>  <FCKeditorV2:FCKeditor ID="fckDescriptionEn" runat="server" AutoDetectLanguage="false"
                            Height="400">
                        </FCKeditorV2:FCKeditor>   
                </td>
            </tr>
            
              <tr>
                <th class="label">
                   <%=GetLangString("DescriptionCN")%>：
                </th>
                <td>  <FCKeditorV2:FCKeditor ID="fckDescriptionCn" runat="server" AutoDetectLanguage="false"
                            Height="400">
                        </FCKeditorV2:FCKeditor>   
                </td>
            </tr>
            
            
            
            <tr>
            <th></th>
            <td>  <asp:Button ID="btnSave" runat="server" Text="" OnClick="btnSave_Click" CssClass="button"
                      />
                  </td>
            </tr>
        </table>
    </div>
</asp:Content>
